include ../makefile.head

CFLAGS  += -I../../include -O


# Implicit rules

SUFFIXES = .o .c .h .a .so .sl

COMPILE.c=$(CC) $(CFLAGS) -c
	#(echo "compiling $< ...")
.c.o:
	($(COMPILE.c) -o $@ $<)


SRCS = mshm.c mshmpool.c

OBJS = $(SRCS:.c=.o)


default:	libmyipcs.a

libmyipcs.a:	$(OBJS)
	#@($(AR) $(ARFLAGS) $(OUTDIR)/libmyipcs.a $(OBJS))
	$(AR) $(ARFLAGS) $(OUTDIR)/libmyipcs.a $(OBJS)

clean:
	$(RM) $(OBJS) $(OUTDIR)/libmyipcs.a

symlink:
veryclean:
	$(RM) $(OBJS) $(OUTDIR)/libmyipcs.a
	rm -rf ./html ; mkdir html

